Skip to content

Conversation

@Anmol202005
Copy link
Collaborator

Fixes: #50
Implemented Header recipe in recipe registry

@Anmol202005
Copy link
Collaborator Author

changes:

  • check names format was not consistent through out the project. So, i have changed it to UpperCase throughout the project.
  • registered header in recipe registry
  • updated CheckstyleRecipeRegistryTest to extend AbstractXmlTestSupport to create a config rather than creating an external config file.

Copy link
Collaborator

@timurt timurt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments from my side

@Anmol202005
Copy link
Collaborator Author

@timurt ping

Copy link
Collaborator

@timurt timurt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM from my side

Thank you!

@rdiachenko rdiachenko assigned rdiachenko and unassigned timurt Jul 25, 2025
@Anmol202005 Anmol202005 force-pushed the registryimpl branch 2 times, most recently from 10788b2 to d564d17 Compare July 28, 2025 11:14
@Anmol202005
Copy link
Collaborator Author

@rdiachenko done.

@Anmol202005 Anmol202005 force-pushed the registryimpl branch 3 times, most recently from 79dfd2c to 0ac8465 Compare July 29, 2025 21:17
Copy link
Member

@rdiachenko rdiachenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not ideal:

  • createRecipe could return optional instead of null
  • if (check.isPresent()) could be replaced with more readable stream api like check.ifPresent

But we already spent too much time on this PR, and it blocks further progress. I'm ok to merge it

@rdiachenko rdiachenko merged commit f223f4a into checkstyle:main Jul 30, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Header in CheckstyleAutoFix

3 participants